package com.xl.xlservice1.client.impl;

import com.xl.xlservice1.client.OrderClient;
import com.xl.xlservice1.model.Order;
import com.xl.xlservice1.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderClientImpl implements OrderClient {

    @Autowired
    private OrderService orderService;
    @Override
    public void addOrder(Order order) {
        orderService.addOrder(order);
    }
}
